import requests
def face_detect(API_key,API_sercret,face_token.attributes):
    """该函数为调用face++ face_detect接口,用于分析人脸"""
    base_url = 'https://api-cn.faceplusplus.com/facepp/v3/detect'
    
    payload = {
            'api_key':API_key,
            'api_secret':API_sercret,
            "face_tokens":face_token,
            "return_attributes":attributes
        
            }
    

    r = requests.post(base_url, params = payload,)
    return r.json()